package xcmg.device.dao.entity.sale;

/**
 * 销售出库过账信息表(SalesOutPost)实体类
 *
 * @author makejava
 * @since 2019-11-18 15:11:18
 */
public class SalesOutPostDO {

  //是否已过账。0否1是
  private static final Integer POST_FLAG_YES = 1;

  //主键
  private String id;
  //对应SALES_OUT_BILL.ID
  private String salesOutId;
  //是否已过账。0否1是
  private Integer postFlag;
  //sap销售单号
  private String sapSaleOrder;
  //sap外向交货单号
  private String sapOutBill;
  //同步到sap的发货单号，B+9位唯一数
  private String sapOutNo;
  //零件号（sap过账用）
  private String materialsNo;
  //过账人ID
  private String postId;
  //过账人名称
  private String postName;
  //过账时间
  private Object postTime;
  //是否删除过账
  private Integer deleteFlag;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getSapOutNo() {
    return sapOutNo;
  }

  public void setSapOutNo(String sapOutNo) {
    this.sapOutNo = sapOutNo;
  }

  public String getSalesOutId() {
    return salesOutId;
  }

  public void setSalesOutId(String salesOutId) {
    this.salesOutId = salesOutId;
  }

  public String getSapSaleOrder() {
    return sapSaleOrder;
  }

  public void setSapSaleOrder(String sapSaleOrder) {
    this.sapSaleOrder = sapSaleOrder;
  }

  public String getSapOutBill() {
    return sapOutBill;
  }

  public void setSapOutBill(String sapOutBill) {
    this.sapOutBill = sapOutBill;
  }

  public String getMaterialsNo() {
    return materialsNo;
  }

  public void setMaterialsNo(String materialsNo) {
    this.materialsNo = materialsNo;
  }

  public String getPostId() {
    return postId;
  }

  public void setPostId(String postId) {
    this.postId = postId;
  }

  public String getPostName() {
    return postName;
  }

  public void setPostName(String postName) {
    this.postName = postName;
  }

  public Object getPostTime() {
    return postTime;
  }

  public void setPostTime(Object postTime) {
    this.postTime = postTime;
  }

  public Integer getPostFlag() {
    return postFlag;
  }

  public void setPostFlag(Integer postFlag) {
    this.postFlag = postFlag;
  }

  public Integer getDeleteFlag() {
    return deleteFlag;
  }

  public void setDeleteFlag(Integer deleteFlag) {
    this.deleteFlag = deleteFlag;
  }

  public boolean hasPosted() {
    return POST_FLAG_YES.equals(this.postFlag);
  }
}
